package com.yingxin.yxerp.module.tplus.auth.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * tplus-鉴权
 * </p>
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tplus_auth")
public class Auth implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId("id")
    private String id;

    /**
     * access_token
     */
    private String accessToken;

    /**
     * access_token过期时间
     */
    private Date expiresIn;

    /**
     * refresh_token
     */
    private String refreshToken;

    /**
     * refresh_token过期时间
     */
    private Date refreshExpiresIn;

    /**
     * 删除标记：0 正常 1 已删除
     */
    @TableLogic
    private String delFlag;


}
